package com.banggood.ppsprojectarch.common;

import com.banggood.pps.commons.bean.oa.OAUserInfo;
import com.banggood.pps.commons.service.support.user.LoginUserSupport;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/16.
 */
@Component("loginUserSupport")
public class MessageLoginUserSupport implements LoginUserSupport {

    @Override
    public String getLoginUserId() {
        String loginUserId = "0";
        try {
            OAUserInfo oaUserInfo = OaUserInfoThreadLocal.getUserInfo();
            loginUserId = oaUserInfo.getOaId();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "0";
    }

}
